<?php
include(dirname(__FILE__) . '/../bootstrap/unit.php');
require_once sfConfig::get('sf_symfony_lib_dir') . '/util/sfToolkit.class.php';
require_once sfConfig::get('sf_symfony_lib_dir') . '/yaml/sfYaml.php';
//require_once ('log4php/Logger.php');

Logger::configure(dirname(__FILE__) . '/log4phpconfig.properties');

$testCases = sfYaml::load(dirname(__FILE__) . '/fixtures/ShiftClassifierTest_fixtures.yml');
$sc = new ShiftClassifier();

$methodName="classify";
$tcount = count($testCases[$methodName]);

$t = new lime_test($tcount);
$t->diag("ShiftClassifier.$methodName Tests: $tcount");


foreach ($testCases[$methodName] as $case) {
    $t->is($sc->classify($case['input']),
            $case['output'], $case['comment']);
}
